package com.sunyard.dal.entity;

import java.io.Serializable;

/**
 * 预制码牌实体类
 *
 * @author ziliang.zhou
 * @Date 2020/01/06 14:08
 */
public class PreQrcode implements Serializable {

    /**
     * 码牌数量编号
     */
    private String preCodeNo;

    /**
     * 二维码coodid
     */
    private String codeId;

    /**
     * 二维码url
     */
    private String url;

    /**
     * 创建时间
     */
    private String createDatetime;

    /**
     * 1-未绑定 2-已绑定 3-已废弃 4-已注销(删除)
     */
    private String status;

    /**
     * 备用
     */
    private String bak1;

    /**
     * 备用
     */
    private String bak2;

    /**
     * 备用
     */
    private String bak3;

    /**
     * 商户编号
     */
    private String mchntCd;

    /**
     * 商户名称
     */
    private String mchntCnNm;

    /**
     * 门店号
     */
    private String shopId;

    /**
     * 门店名称
     */
    private String shopName;

    /**
     * 二维码下载次数
     */
    private Integer codeDloadNm;


    public String getMchntCd() {
        return mchntCd;
    }

    public void setMchntCd(String mchntCd) {
        this.mchntCd = mchntCd;
    }

    public String getMchntCnNm() {
        return mchntCnNm;
    }

    public void setMchntCnNm(String mchntCnNm) {
        this.mchntCnNm = mchntCnNm;
    }

    public String getPreCodeNo() {
        return preCodeNo;
    }

    public void setPreCodeNo(String preCodeNo) {
        this.preCodeNo = preCodeNo;
    }

    public String getCodeId() {
        return codeId;
    }

    public void setCodeId(String codeId) {
        this.codeId = codeId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(String createDatetime) {
        this.createDatetime = createDatetime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 1-未绑定 2-已绑定 3-已废弃 4-已注销
     *
     * @return string
     */
    public String getStatusName() {
        if (null == status || "".equals(status)) {
            return "";
        }
        switch (status) {
            case "1":
                return "未绑定";
            case "2":
                return "已绑定";
            case "3":
                return "已废弃";
            case "4":
                return "已注销";
            default:
                return "";
        }
    }

    public String getBak1() {
        return bak1;
    }

    public void setBak1(String bak1) {
        this.bak1 = bak1;
    }

    public String getBak2() {
        return bak2;
    }

    public void setBak2(String bak2) {
        this.bak2 = bak2;
    }

    public String getBak3() {
        return bak3;
    }

    public void setBak3(String bak3) {
        this.bak3 = bak3;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Integer getCodeDloadNm() {
        return codeDloadNm;
    }

    public void setCodeDloadNm(Integer codeDloadNm) {
        this.codeDloadNm = codeDloadNm;
    }
}